package com.aboo.file1;

import java.io.BufferedWriter;
import java.io.IOException;

public class WriteKit {

    private BufferedWriter bw;

    public WriteKit(BufferedWriter bw) {
        this.bw = bw;
    }

    public synchronized void write(String msg) throws IOException {
        bw.write(msg);
        bw.newLine();
    }

}
